
import Vuex from 'vuex'


export default new Vuex.Store({
  state: {
    admin:{},
    user:{}
  },
  mutations: {
    SET_ADMIN(state,admin){
      state.admin=admin
    },
    SET_USER(state,user){
      state.user=user
    }
  },
  actions: {
    SET_ADMIN({commit},admin){
      this.state.admin=admin
    },
    SET_USER({commit},user){
      this.state.user=user
    }
  },
  getters:{
    getAdmin: (state)=>state.admin,
    getUser: (state)=>state.user
  }
  // modules: {
  // }
})
